package data.nanjing.expo.models.domain.trade;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 服务商市场排序字段
 * @author ChanJi
 * @create 2018-04-28 19:47
 * service_market_sort
 **/

public class ServiceMarketSort implements Serializable{

    private Integer id;

    /**
     * 服务类型
     * type
     */
    private String type;

    /**
     * 服务类型的对应的id
     * 和服务类型确定一条服务记录
     * service_id
     */
    private Integer providerId;

    /**
     * 成交量
     * volume
     */
    private Integer volume;

    /**
     * 评价数量
     * evaluate_number
     */
    private Integer evaluateNumber;
    /**
     * 人气
     * popularity
     */
    private Integer popularity;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtModify;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getProviderId() {
        return providerId;
    }

    public void setProviderId(Integer providerId) {
        this.providerId = providerId;
    }

    public Integer getVolume() {
        return volume;
    }

    public void setVolume(Integer volume) {
        this.volume = volume;
    }

    public Integer getEvaluateNumber() {
        return evaluateNumber;
    }

    public void setEvaluateNumber(Integer evaluateNumber) {
        this.evaluateNumber = evaluateNumber;
    }

    public Integer getPopularity() {
        return popularity;
    }

    public void setPopularity(Integer popularity) {
        this.popularity = popularity;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModify() {
        return gmtModify;
    }

    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    @Override
    public String toString() {
        return "ServiceMarketSort{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", providerId=" + providerId +
                ", volume=" + volume +
                ", evaluateNumber=" + evaluateNumber +
                ", popularity=" + popularity +
                ", gmtCreat=" + gmtCreate +
                ", gmtModify=" + gmtModify +
                '}';
    }
}
